package com.iwhalecloud.bss.kite.cucc.client.api.order;

import com.alibaba.fastjson.JSONObject;
import com.iwhalecloud.bss.kite.cucc.client.dto.inf.req.QryStockAttachMentUrlReqDTO;
import com.iwhalecloud.bss.kite.cucc.client.dto.inf.rsp.QryStockAttachMentUrlRspDTO;
import com.iwhalecloud.bss.kite.cucc.client.dto.order.ContractDictionaryDTO;
import com.iwhalecloud.bss.kite.cucc.client.vo.order.FileVO;

import java.io.File;
import java.util.List;

public interface IAttachmentService {

    FileVO uploadAttachment(String fileName, byte[] bytes);

    /**
     * 传文件名即可
     *
     * @param filePath
     * @return 返回文件预览路径
     */
    String attachView(String filePath, String fileName, boolean isStockAttachment);

    List<ContractDictionaryDTO> queryContractDictionary();

    String orderCenterFileUpload(String fileName, byte[] bytes, String fileType);
    List<JSONObject> orderCenterHttpFileUpload(File toFile, byte[] bytes);
    QryStockAttachMentUrlRspDTO getStockAttachmentUrl(QryStockAttachMentUrlReqDTO qryStockAttachMentUrlReqDTO);
}
